package com.xiashitech.agent.instrumentation.redis.redisson;

import com.xiashitech.agent.instrumentation.redis.RedisData;

import java.util.concurrent.CompletableFuture;

public class XSCompletableFuture<T> extends CompletableFuture<T> implements XSPromiseWrapper<T>{
    protected volatile RedisData redisData;
    protected volatile XSEndOperationListener endOperationListener;
    @Override
    public void setEndOperationListener(XSEndOperationListener endOperationListener) {
        this.endOperationListener = endOperationListener;
    }

    @Override
    public RedisData getRedisData() {
        return redisData;
    }

    @Override
    public XSEndOperationListener<T> getEndOperationListener() {
        return endOperationListener;
    }
}
